package day07.ab;

public abstract class Sub2Abstract extends AbstractDemo{
    @Override
    public void test(){
        System.out.println("test...");
    }
}

    class Sub3 extends Sub2Abstract{

    @Override
        public void add(){
        System.out.println("add...");
    }
    }

    class TestSub3{
    public static void main(String[] args){
        AbstractDemo demo = new Sub3();

        demo.add();

        demo.test();
    }
}
